package com.chaochis.springboottestdemo.config.webConfig;

import com.chaochis.springboottestdemo.config.webConfig.typeConvert.StringToDateConverter;
import com.chaochis.springboottestdemo.enumList.BaseEnum;
import com.chaochis.springboottestdemo.enumList.RequestMethod;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

@Configuration
public class ConvertConfig {

  @Bean
  public Converter<String, Date> stringToDateConverter() {
    return new StringToDateConverter();
  }
}
